package com.yanqu.road.entity.activity.hanghai;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_activity_hanghai_lock_status")
public class HangHaiLockStatus extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true, update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "是否锁定")
    private boolean hadLock;    // 不锁名单了，现在用于：是否获取过全量名单

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public boolean isHadLock() {
        return hadLock;
    }

    public void setHadLock(boolean hadLock) {
        if (hadLock != this.hadLock) {
            this.hadLock = hadLock;
            setUpdateOption();
        }
    }
}
